<link href="<?php echo base_url()?>assets/css/icons/icol16.css" rel="stylesheet">
<div id="page-wrapper">

    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">
                    Penugasan Followup
                </h1>
                <ol class="breadcrumb">
                    <li>
                        <i class="fa fa-dashboard"></i>  <a href="<?php echo base_url(); ?>home">Dashboard</a>
                    </li>
                    <li class="active">
                        <i class="fa fa-edit"></i> <a href="<?php echo base_url(); ?>modul/penugasan_followup/index">Penugasan Followup</a>
                    </li>
                    <li class="active">
                        <i></i>List Penugasan Followup
                    </li>
                </ol>
            </div>
        </div>
        <!-- /.row -->
        <div class="col-lg-12">
            <h2>List Penugasan</h2>
            <form method="post" action="<?php echo base_url(); ?>modul/penugasan_followup/search_list_penugasan">
                    <input type="text" class="input-teks" size="70" value="<?php if($this->input->post('cari')) echo $this->input->post('cari'); else echo 'Cari Perusahaan...'; ?>" onblur="if(this.value=='') this.value='<?php echo 'Cari Perusahaan...'; ?>';" onfocus="if(this.value=='<?php echo 'Cari Perusahaan...'; ?>') this.value='';" name="cari"  />
                    <input type="submit" value="Search" class="input-tombol" style="margin:0;padding: 9px 30px;" />
            </form>
                <table class="table table-hover table-striped">
                    <thead>
                        <tr>
                            <th>No</th>
                            <th>Perusahaan</th>
                            <th>Catatan Manager</th>
                            <th>Teknisi</th>
                            <th>Status Marketing</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php $i = 1 ?>
                    <?php foreach($rows_penugasan_followup as $row_pf): ?>
                            <tr>
                                <td><?php echo $i ?></td>
                                <td><a href="<?php echo base_url()?>modul/perusahaan/show/<?php echo $row_pf->id_perusahaan?>"><?php echo $row_pf->nama_perusahaan ?></a></td>
                                <td><?php echo $row_pf->keterangan_penugasan_followup ?></td></td>
                                <td><a href="<?php echo base_url()?>modul/teknisi/show/<?php echo $row_pf->id_teknisi?>"><?php echo $row_pf->nama_teknisi ?></a></td>
                                <td><?php 
                                        if($row_pf->status_marketing_perusahaan == 'belum'){?>
                                            <button type="button" class="btn btn-sm btn-info" onClick="window.location='<?php echo base_url()?>modul/penugasan_followup/detail/<?php echo $row_pf->id_penugasan_followup?>'"><i class="icol-magnifier"></i>Belum</button>
                                        <?php } 
                                        elseif ($row_pf->status_marketing_perusahaan == 'positif') { ?>
                                            <button type="button" class="btn btn-sm btn-primary" onClick="window.location='<?php echo base_url()?>modul/penugasan_followup/detail/<?php echo $row_pf->id_penugasan_followup?>'"><i class="icol-magnifier"></i>Positif</button>
                                        <?php }
                                        elseif ($row_pf->status_marketing_perusahaan == 'negatif') { ?>
                                            <button type="button" class="btn btn-sm btn-warning" onClick="window.location='<?php echo base_url()?>modul/penugasan_followup/detail/<?php echo $row_pf->id_penugasan_followup?>'"><i class="icol-magnifier"></i>Negatif</button>
                                        <?php }
                                        elseif ($row_pf->status_marketing_perusahaan == 'success') { ?>
                                            <button type="button" class="btn btn-sm btn-success" onClick="window.location='<?php echo base_url()?>modul/penugasan_followup/detail/<?php echo $row_pf->id_penugasan_followup?>'"><i class="icol-magnifier"></i>Success</button>
                                        <?php } 
                                        else { ?>
                                            <button type="button" class="btn btn-sm btn-danger" onClick="window.location='<?php echo base_url()?>modul/penugasan_followup/detail/<?php echo $row_pf->id_penugasan_followup?>'"><i class="icol-magnifier"></i>Failed</button>
                                           <?php }?>


                                </td>
                            </tr>
                        <?php $i++; ?>
                    <?php endforeach ?>
                    </tbody>
                </table>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.container-fluid -->
